package com.rocksdata.mc.entity;

import com.rocksdata.mc.R;

public enum HomepageWidgetItemType {
    TYPE_APP("应用", 0),
    TYPE_ANNOUNCEMENT("公告", R.mipmap.ic_widget_announcement),
    TYPE_NEWS("新闻", R.layout.widget_news),
    TYPE_TIMETABLE("上课", R.layout.widget_timetable);

    private String widgetName;
    private int widgetIconRes;

    HomepageWidgetItemType(String widgetName, int widgetIconRes) {
        this.widgetName = widgetName;
        this.widgetIconRes = widgetIconRes;
    }

    public String getWidgetName() {
        return widgetName;
    }

    public void setWidgetName(String widgetName) {
        this.widgetName = widgetName;
    }

    public int getWidgetIconRes() {
        return widgetIconRes;
    }

    public void setWidgetIconRes(int widgetIconRes) {
        this.widgetIconRes = widgetIconRes;
    }
}



